package com.camel.controller.utils;

public class R {
    private int code;
    private Object data;
    private String mes;

    public R(){}

    public R(int code){
        this.code = code;
    }

    public R(int code,Object data){
        this.code = code;
        this.data = data;
    }
    public R(int code,String mes){
        this.code = code;
        this.mes = mes;
    }

    public R(String mes){
        this.code = 0;
        this.mes = mes;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMes() {
        return mes;
    }

    public void setMes(String mes) {
        this.mes = mes;
    }
}
